package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.PostsBean;

import java.time.LocalDate;

public interface IPostsService {
    /**
     * @param pageNO    页码
     * @param theme     主题
     * @param author    发帖人姓名
     * @param startDate 开始日期
     * @param endDate   结束日期
     * @return {@code IPage<PostsBean>}
     */
    public IPage<PostsBean> selectByItem(Integer pageNO, String theme, String author,
                                         LocalDate startDate,LocalDate endDate,Integer channelId);
    public PostsBean selectPosts(Integer postsId);

    public void addPosts(PostsBean posts);
}
